import request from "@/axios";

// 获取员工申请列表
export const getUserCompanyAuth = () =>
  request({
    url: "/api/company/getusercompanyauth",
    method: "get"
  });

// 同意或拒绝员工申请
export const approveUser = option =>
  request({
    url: "/api/company/approveuser",
    method: "post",
    data: option
  });

// 获取员工管理列表
export const getUserManagementList = () =>
  request({
    url: "/api/company/getusermanagementlist",
    method: "get"
  });

// 删除员工
export const deleteEmployee = option =>
  request({
    url: "/api/company/deleteemployee",
    method: "get",
    params: option
  });

// 编辑员工
export const updateEmployee = option =>
  request({
    url: "/api/company/updateemployee",
    method: "post",
    data: option
  });

// 编辑业务跟进
export const updateStaffLimit = option =>
  request({
    url: "/api/company/updatecompanyuserlimit",
    method: "post",
    data: option
  });

// 新增业务跟进
export const addStaffLimit = option =>
  request({
    url: "/api/company/addcompanyuserlimit",
    method: "post",
    data: option
  });

// 删除业务跟进
export const delStaffLimit = option =>
  request({
    url: "/api/company/deletecompanyuserlimit",
    method: "get",
    params: option
  });
